<%@ page contentType="text/html;charset=UTF-8" pageEncoding="UTF-8"
	trimDirectiveWhitespaces="true"%>
<%@ include file="/WEB-INF/views/include.inc.jsp"%>
<!-- 增加标签库 -->
<%@ taglib prefix="spr" uri="/WEB-INF/tlds/spring.tld"%>

<head>
<script type="text/javascript">
function changNameValue(){
	var companyId = document.getElementById("companyId").value;
	var username = document.getElementById("username_1").value;
	document.getElementById("username").value = username+":"+companyId;
}
</script>
</head>

<body>
	<div id="login">
		<div id="login_header">
			<h1 class="login_logo">
				<img
					src="${ctx}/static/styles/management/themes/default/images/logo.png" />
			</h1>
			<!-- 测试国际化 -->
			<!--  
							 <spr:message code="greeting.common" /><br>  <spr:message code="robin.say" /><br>-->
			<!-- 
			<div class="login_headerContent">
				<div class="navList">
					<ul>
						 <li><a href="${ctx}/login">主页</a></li>
						<li><a href="http://172.18.60.71/erp"  target="_blank">ERP</a></li>
						<li><a href="http://cmp.nisco.cn" target="_blank">协同办公</a></li>
					</ul>
				</div>
				<h2 class="login_title">请登录</h2>
			</div>-->
		</div>
		<div id="login_content">
			<div class="loginForm">
				<form method="post" action="${ctx}/login" id="formID">
					<c:if test="${msg != null}">
						<p style="color: red; margin-left: 10px;">${msg}</p>
					</c:if>
					<p>
						<label>公司别:</label>
						<select id="companyId" name="companyId" style="width: 156px;height: 24px;" class="validate[required] login_input">
						<c:forEach var="item" items="${companies}">
						<option value="${item.id}">${item.strName}</option>
						</c:forEach>
						</select>

					</p>
					<p>
						<label>用户名:</label> <input type="text" name="username_1"
							style="width: 150px;" class="validate[required] login_input"
							id="username_1" value="${username }" />
						<input type="hidden" name="username" id="username" value="">

					</p>
					<p>
						<label>密&nbsp;&nbsp;&nbsp;&nbsp;码:</label> <input type="password"
							name="password" style="width: 150px;"
							class="validate[required] login_input" id="password" />
					</p>
					<%--不使用验证码
					<p>
						<label>验证码:</label>
						<input type="text" id="captcha_key" name="captcha_key" class="code validate[required,maxSize[6]]" size="6" />
						<span><img src="${ctx}/Captcha.jpg" alt="点击刷新验证码" width="75" height="24" id="captcha"/></span>
					</p>
					 --%>
					<div class="login_bar">
						<input id="submit_btn" class="sub" type="submit" value="" onclick="changNameValue()"/>
					</div>
					<ul class="helpList">
						<li><a href="javascript:toggleBox('forgotPwd')">忘记密码?</a></li>
					</ul>
					<div class="login_inner">
						<p>测试用户名: admin</p>
						<p>测试密码: 123456</p>
					</div>
				</form>
			</div>
			<div class="login_banner">
				<img
					src="${ctx}/static/styles/management/themes/default/images/login_banner.jpg" />
			</div>
			<!--  
			<div class="login_main">
				<ul class="helpList">
					<li><a href="javascript:toggleBox('forgotPwd')">忘记密码?</a></li>
				</ul>

				<div class="login_inner">
					<p>测试用户名: admin</p>
					<p>测试密码: 123456</p>
				</div>
			</div>
-->
		</div>
	</div>
</body>
</html>
